package com.wei.myhame.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.wei.myhame.MainActivity;
import com.wei.myhame.R;
import com.wei.myhame.base.BaseActivity;
import com.wei.myhame.base.interfaces.IPresenter;

public class IdentificationActivity extends BaseActivity {
    RelativeLayout relativeBackMain;
    Button buttonBack;
    ImageView fyimg;
    TextView texttopname;

    @Override
    protected int getLayout() {
        return R.layout.activity_identification;
    }

    @Override
    protected IPresenter createPresenter() {
        return null;
    }

    @Override//请求接口的方法
    protected void initView() {

    }

    @Override//实例化对象的方法
    protected void initData() {

        buttonBack = findViewById(R.id.buttonBack);//返回上一级按钮
        relativeBackMain = findViewById(R.id.relativeBackMain);//返回首页
        fyimg = findViewById(R.id.fyimg);//法院图片
        texttopname = findViewById(R.id.texttopname);//法院顶部名

        //返回按钮的点击事件
        buttonBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(IdentificationActivity.this, MainActivity.class);
                startActivity(intent);
                finish();
            }
        });
        //返回首页的点击事件
        relativeBackMain.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
            /*    Intent intent = new Intent(IdentificationActivity.this, MainActivity.class);
                startActivity(intent);
                finish();*/
                Intent intent = new Intent(IdentificationActivity.this, ChooseIdActivity.class);
                startActivity(intent);
                finish();
            }
        });

    }
}
